home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000023_icon-group-sender _Wed May 13 07:42:30 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id HAA17889
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Wed, 13 May 1998 07:42:29 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA22013; Wed, 13 May 1998 07:42:25 -0700
  7. Message-Id: <3.0.5.32.19980512175257.007a7c40@doors>
  8. X-Sender: bgbauer#alpha.delta.edu@doors
  9. X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
  10. Date: Tue, 12 May 1998 17:52:57 -0700
  11. To: "Icon Group"<icon-group@optima.CS.Arizona.EDU>
  12. From: Scissors <jebediah@bigfoot.com>
  13. Subject: Determining O/S
  14. Mime-Version: 1.0
  15. Content-Type: text/plain; charset="us-ascii"
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18. Content-Length: 967
  19.  
  20.  
  21. Oh, I thought of another question thats been bugging me.  What is the easiest
  22. way to determine the O/S your running on?  I would have no idea how to
  23. determine
  24. unix, and Im uncertain the 'best' way to determine if the O/S is win3.1,
  25. win95,
  26. or winNT?
  27.  
  28. Would it be best to use some of the ifdef lines I've noticed in io.icn for
  29. o/s secific code? if so what are the available definitions?
  30.  
  31. At first I thought code similar to this would work (which is from yescr.icn):
  32.  
  33.    if find("UNIX",&features) then {
  34.       expressions
  35.    }
  36.    else if find("MS-DOS", &features) then {
  37.       expressions
  38.    }
  39.    else if find("MS Windows NT", &features) then {
  40.       expressions
  41.    }
  42.  
  43. But this would lump win3.1 (win32s) with win95, and NT, and i believe it
  44. wouldnt give any indication of if the app is console, or windowed.   Code
  45. i'm working on now would need to act differently on win3.1 than it would on
  46. win95/nt.
  47.  
  48. Any help, suggestions, or comments welcome.
  49.  
  50. Thanks,
  51. scissors
  52.  
  53.  
  54.  
  55.